package com.zzw.dao;

import com.zzw.bean.Roles;
import com.zzw.bean.RolesExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface RolesMapper {
    long countByExample(RolesExample example);

    int deleteByExample(RolesExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Roles record);

    int insertSelective(Roles record);

    List<Roles> selectByExample(RolesExample example);

    List<Roles> selectRolesList(Roles roles);

    //查询用户的角色
    List<Roles> selectRolesByUserId(@Param("userId") Integer userId);

    Roles selectByPrimaryKey(Integer id);



    int updateByExampleSelective(@Param("record") Roles record, @Param("example") RolesExample example);

    int updateByExample(@Param("record") Roles record, @Param("example") RolesExample example);

    int updateByPrimaryKeySelective(Roles record);

    int updateByPrimaryKey(Roles record);
}
